/**
 * 整个程序的配置文件
 *
 * @author bian
 * @createDate 2018.3.1
 */

var path = require("path");

const Config = {
    db:{
        host : "139.129.42.180",
        port : 3306,
        name : "mysql",
        user : "bian",
        pwd : "Bln12345",
        dbname : "fingerprinter",
        toString() {
            return `${this.name}://${this.user}:${this.pwd}@${this.host}:${this.port}/${this.dbname}`;
        }
    },

    redis:{
        host : "127.0.0.1",
        pwd : "",
        prefix : "fingerprint"
    },

    ftp : {
        host : "127.0.0.1",
        user : "ftpUser",
        password : "ftpPassword"
    },

    log : {
        path : path.join(__dirname,"../"),
        name : "fingerprint.log",
        toString(){
            return path.join(this.path,this.name);
        }
    },

    root : path.join(__dirname,"../")
};


module.exports = Config;
